package com.crmapi.service;

import com.crmapi.pojo.PageBean;
import com.crmapi.pojo.Product;

import java.util.List;
import java.util.Map;

public interface ProductService {

    //保存产品
    int save(Product product);

    //批量删除
    int delete(List<String> ids);

    //更新产品
    int update(Product product);

    //条件查询
    PageBean queryList(Integer page,Integer pageSize,String code,String name,Double price,Integer num,Integer status,String note);

    //分页查询
    List<Product> queryAll();
}
